package zb.blog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import zb.blog.base.sessionScope.SessionScope;
import zb.blog.bean.AuthPersonBean;

/**
 * @Author: BinZhang
 * @Date: 2018/6/11 0:18
 * @Description:登陆者个人信息相关
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping(value = "/back/getLoginUser", method = RequestMethod.POST)
    @ResponseBody
    public AuthPersonBean getLoginUser() {
        return SessionScope.getLoginAuth();
    }
}
